﻿using System;
using System.Web;

namespace blackhouse.AsyncMail.Web {
	public class ASyncMailModule : IHttpModule {

		#region IHttpModule Members

		public void Dispose() {
		}

		public void Init(HttpApplication context) {
			context.BeginRequest += new EventHandler(context_BeginRequest);
		}

		#endregion

		public void context_BeginRequest(object sender, EventArgs e) {
			CacheTaskRunner.RunTaskerOnCache();
		}

	}
}
